package hospital;

/**
 * @author oldliu
 * @since 1.0
 */
public class ForT2 {
    public static void main(String[] args) {
        int arr[] = new int[]{1,2, 12, 4, 14, 5, 6, 4, 7};
        boolean flag = true;
        chongfu:
        for (int i = 0; i < arr.length - 1; i++) {
            //???System.out.println("i="+i);
            for (int j = i + 1; j < arr.length; j++) {

                if (arr[i] == arr[j]) {
                    flag = false;
                    break chongfu;
                }
            }

        }
        if (flag) {
            System.out.println("没有重复");
        } else {
            System.out.println("重复");

        }
    }
}
